package com.GXKJ.Test.mapper;

import com.GXKJ.Test.entity.Databasesource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * 表(Databasesource)表数据库访问层
 *
 * @author NongZhiQuan
 * @since 2021-05-14 10:18:54
 */

@Mapper
@Repository
public interface DatabasesourceMapper {
    @Select("select * from databasesource")
    List<Databasesource> get();

    //select *
    //from databasesource where dbname='mytest'
    @Select("select * from databasesource where dbname=#{dbname}")
    Databasesource selectAll(String dbname);

    //@Select("select table_name from information_schema.tables")
    @Select("select * from user")
    List<Databasesource> selectget();

    @Select("select * from user")
    List selectDbTable();

}



